import { Button } from 'antd';
import { getUserInfo } from '../../api/user';
import { useEffect } from 'react';

function PageEntry() {

  useEffect(() => {
    getUserInfo().then((res) => {
      console.log('User Info:', res);
    })
  }, []);
  return <div className="flex flex-col items-center justify-center bg-gradient-to-r from-#4facfe to-#00f2fe" style={{height: 'calc(100vh - 64px - 70px)'}}>
      <h2>问卷调查 | 在线投票</h2>
      <div>已累计创建问卷 100 份，发布问卷 95 份，收到答卷 600 份</div>
      <div className="mt-10px">
        <Button type="primary" size="large">开始使用</Button>
      </div>
  </div>;
}

export default PageEntry;
